package com.framework.modules.live.controller;

import com.framework.common.utils.PageUtils;
import com.framework.common.utils.R;
import com.framework.modules.base.service.UserIncomeHistoryService;
import com.framework.modules.user.service.UserWithdrawHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


/**
 *  
 *
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2021-01-04 03:13:24
 */
@RestController
@RequestMapping("live/livewithdrawhistory")
@Api(tags = "LiveWithdrawHistoryController")
public class LiveWithdrawHistoryController {
    @Autowired
    private UserWithdrawHistoryService userWithdrawHistoryService;

    /**
     * 列表
     */
    @RequestMapping("/list")
        @RequiresPermissions("live:livewithdrawhistory:list")
        @ApiOperation("list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = userWithdrawHistoryService.queryLiveWithdrawHistory(params);
        return R.ok().put("page", page);
    }


}
